package cn.lysj.framework.foodv2.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/11/6--18:08
 * @Description:
 */
@Data
public class FoodListVo {
    private String id;//唯一标识
    private String name;//名称
    private BigDecimal money; //价格
    private String logo; //图片
    private Integer virtualSellNum;//虚拟销量
    private Integer actSellNum;//实际销量
    private Integer rank;//排序
    private String foodType;//食物类型Id
    private String foodTypeName;//品类名称
    private String foodMaterial;//食物材料
    private String remark;//备注
    private Integer onSale; //是否售罄 -1:否 ,1:是
    private Integer isUse; //上架 1,  下架 2

    public FoodListVo(String id, String name, BigDecimal money, String logo, Integer virtualSellNum, Integer actSellNum, Integer rank, String foodType, String foodTypeName, String foodMaterial, String remark, Integer onSale, Integer isUse) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.logo = logo;
        this.virtualSellNum = virtualSellNum;
        this.actSellNum = actSellNum;
        this.rank = rank;
        this.foodType = foodType;
        this.foodTypeName = foodTypeName;
        this.foodMaterial = foodMaterial;
        this.remark = remark;
        this.onSale = onSale;
        this.isUse = isUse;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Integer getVirtualSellNum() {
        return virtualSellNum;
    }

    public void setVirtualSellNum(Integer virtualSellNum) {
        this.virtualSellNum = virtualSellNum;
    }

    public Integer getActSellNum() {
        return actSellNum;
    }

    public void setActSellNum(Integer actSellNum) {
        this.actSellNum = actSellNum;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public String getFoodType() {
        return foodType;
    }

    public void setFoodType(String foodType) {
        this.foodType = foodType;
    }

    public String getFoodTypeName() {
        return foodTypeName;
    }

    public void setFoodTypeName(String foodTypeName) {
        this.foodTypeName = foodTypeName;
    }

    public String getFoodMaterial() {
        return foodMaterial;
    }

    public void setFoodMaterial(String foodMaterial) {
        this.foodMaterial = foodMaterial;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getOnSale() {
        return onSale;
    }

    public void setOnSale(Integer onSale) {
        this.onSale = onSale;
    }

}
